package ch.netcetera.planningpoker.client.ui.events;

import com.google.web.bindery.event.shared.Event;

public class RoundStatusChangedEvent extends Event<RoundStatusChangedEventHandler> {
    
    public static final Type<RoundStatusChangedEventHandler> TYPE = new Type<RoundStatusChangedEventHandler>();
    private final Long gameId;

    public RoundStatusChangedEvent(Long gameId) {
        this.gameId = gameId;
    }
    
    @Override
    public Event.Type<RoundStatusChangedEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(RoundStatusChangedEventHandler handler) {
        handler.onRoundStatusChanged(this);
    }

    public Long getGameId() {
        return gameId;
    }


}
